﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Kokomo.Mirror.CliMetadata
{
	[TypeConverter(typeof(GuidRefConverter))]
	public struct GuidRef
	{
		public int HeapIndex { get; private set; }
		public Guid Guid { get; private set; }

		public GuidRef(
			int heapIndex,
			Guid guid
			)
			: this()
		{
			this.HeapIndex = heapIndex;
			this.Guid = guid;
		}

		public override string ToString()
		{
			return this.Guid.ToString();
		}
	}
}
